<?php
declare(strict_types = 1);
namespace SimpleDingTalk\v2\AI;
use SimpleDingTalk\v2\ApiRequest;
use SimpleDingTalk\v2\Url;
class Threads
{
    public static function create(array $body){
        $uri=Url::$api['ai']['threads'];
       
        $res=ApiRequest::post($uri,$body);
        return $res;
    }
    public static function remove(string $id){
        $uri=Url::$api['ai']['threads']."/$id";
       
        $res=ApiRequest::delete($uri);
        return $res;
    }

    public static function get(string $id){
        $uri=Url::$api['ai']['threads']."/$id";
       
        $res=ApiRequest::get($uri);
        return $res;
    }
}
